from rest_framework import serializers
from .models import User,Permission,PermissionType,UserGroup

class UserSer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'

class TypeSer(serializers.ModelSerializer):
    class Meta:
        model = PermissionType
        fields = '__all__'

class PermSer(serializers.ModelSerializer):
    class Meta:
        model = Permission
        fields = '__all__'

class GroupSer(serializers.ModelSerializer):
    class Meta:
        model = UserGroup
        fields = '__all__'
